/*
 * @Author: 黄达全
 * @Date: 2024-08-07 11:58:34
 * @LastEditTime: 2024-08-07 15:25:23
 */
import type { ApiResponse } from "./http"
export type NoticeApi ={
    add:(form:NoticeAddForm)=>Promise<ApiResponse<null>>,
    page:(page:number,pageSize:number)=>Promise<ApiResponse<NoticePageVO>>,
    delete:(ids:number[])=>Promise<ApiResponse<null>>,
    update:(form:NoticeUpdateForm)=>Promise<ApiResponse<null>>
}

export type NoticeAddForm = {
    title:string,
    content:string,
    order:number
}

export type NoticeVO = {
    id:number,
    title:string,
    content:string,
    order:number
}

export type NoticePageVO = {
    total:number,
    records:NoticeVO[]
}
export type NoticeUpdateForm = {
    id:number,
    title:string,
    content:string,
    order:number
}